package com.hbnu.pojo;

import com.baomidou.mybatisplus.annotation.*;
import com.hbnu.enums.SexEnum;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;

import javax.annotation.security.DenyAll;

/**
 * @Auther: hjx
 * @Date: 2023/6/14 23:08
 * @Description:
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@Accessors(chain = true)
//@TableName("tb_user")
public class User {
    //@TableId注解的value属性用于指定主键的字段
    //@TableId注解的type属性属性设置主键生成策略
//    @TableId(value = "uid",type = IdType.AUTO)
    @TableId("uid")
    private Long id;
    private String name;
    private Integer age;
    private String email;
    private SexEnum sex;
    //    @TableField("is_deleted")
    @TableLogic // 标记该属性为逻辑删除字段
    private Integer isDeleted;
}

